<?php
    include('checkAdminAccess.php');
    $iniVars = parse_ini_file('../../config.ini',TRUE);
    include('../classes/adodb5/adodb.inc.php');
    include('../function/db.func.php');
    
    $prideWorkTitle = $_POST['prideWorkTitle'];
    $prideWorkMsg = $_POST['prideWorkMsg'];
    $prideWorkSection = $_POST['prideWorkSection'];
    $prideWorkActive = $_POST['prideWorkActive'];
    $psGroup = $_POST['psGroup'];
    
    $sql = "INSERT INTO pride_work VALUES('','$prideWorkMsg','$prideWorkSection','$psGroup','$prideWorkActive','1','$prideWorkTitle')";
    $result = $db->Execute($sql);
    
    if($result){
       echo 'success';
    }else{
        echo 'fail';
    }
?>